public class Demo5 extends Thread{
    @Override
    public void run() {
        System.out.println("hello thread");
    }

    public static void main(String[] args) {
        Demo5 demo5 = new Demo5();
        demo5.run();
    }
}
